<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center bannerDetails_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub bannerDetails_fd0_0'>
					<view class='flex flex-wrap align-center bannerDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  bannerDetails_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='bannerDetails_fd0_0_c1_c0'>详情</text>
					</view>
					<view class='flex flex-wrap align-center justify-end bannerDetails_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view class="loading_css" v-if="isShow">
				<u-loading size="36" color="#988AFB"></u-loading>
				<view>加载中</view>
			</view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout bannerDetails_flex_1" v-else>
				<view class='flex flex-wrap align-center bannerDetails_fd1_0'>
					<text>{{dataMessage.name}}</text>
				</view>
				<view class='flex flex-wrap align-center bannerDetails_fd1_1'>
					<text class='bannerDetails_fd1_1_c0'>{{dataMessage.create_time}}</text>
				</view>
				<view class='flex flex-wrap align-center'>
					<jyf-parser class='bannerDetails_fd1_2_c0' :html="dataMessage.content | richTextFormat">
					</jyf-parser>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				aid: "",
				isShow: true,
				dataMessage: {},
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				aid
			} = options;
			if (aid !== undefined) this.aid = aid;
			this.queryEssayFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//系统文章--获取系统单页内容
			async queryEssayFunc() {
				//请求方法
				//数据验证

				let datadataMessage = await this.$api.post(global.apiUrls.post656f313a73452, {
					id: this.aid
				});
				this.isShow = false;
				if (datadataMessage.data.code != 1) {
					this.$message.info(datadataMessage.data.msg);
					return
				}
				let infodataMessage = datadataMessage.data;
				this.dataMessage = infodataMessage.data;
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #FFFFFF;
		background-size: 100% auto;
	}

	.bannerDetails_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.bannerDetails_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.bannerDetails_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.bannerDetails_fd0_0_c0 {
		width: 120rpx;
	}

	.bannerDetails_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.bannerDetails_flex_1 {
		padding: 40rpx 32rpx 32rpx 32rpx;
	}

	::v-deep .bannerDetails_fd1_2_c0 {
		width: 100%;
	}

	.bannerDetails_fd1_1_c0 {
		font-size: 24rpx;
		color: rgba(153, 153, 153, 1);
	}

	.bannerDetails_fd1_1 {
		margin: 24rpx 0rpx 32rpx 0rpx;
	}

	.bannerDetails_fd1_0 {
		font-size: 40rpx;
		font-weight: 500;
	}
</style>